/**
 * @author Aaron
 * @createTime 14:29 2022/5/17
 **/
package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type FundsFlow struct {
	Id          int64 `json:"id" gorm:"primaryKey;autoIncrement"`
	Uid         int
	Amount      int
	Type        uint8
	ConsumeType uint8 // 1礼物, 2鹰眼付费, 3货币转换, 4公会分成, 5主播分成,6钱包充值, 7转到游戏, 8游戏提款, 9其他
	CreateTime  time.Time
}

func (FundsFlow) TableName() string {
	return fmt.Sprintf("%sfunds_flow", models.Prefix)
}
